package com.shine.minepressure.ui.adapter;

import androidx.recyclerview.widget.RecyclerView;

import com.shine.minepressure.R;
import com.shine.minepressure.bean.SensorHisAlarmBean;
import com.shine.minepressure.bean.StationHisFaultBean;

import cn.bingoogolapple.baseadapter.BGARecyclerViewAdapter;
import cn.bingoogolapple.baseadapter.BGAViewHolderHelper;

public class HistoryDataFragment2Adapter extends BGARecyclerViewAdapter<StationHisFaultBean.RowsDTO> {

    public HistoryDataFragment2Adapter(RecyclerView recyclerView) {
        super(recyclerView, R.layout.item_history_data_child2_adapter);
    }

    @Override
    protected void fillData(BGAViewHolderHelper helper, int position, StationHisFaultBean.RowsDTO model) {
        helper.setText(R.id.StationID, model.getStationID())
                .setText(R.id.StationType, model.getStationType())
                .setText(R.id.StationNewOld, model.getStationNewOld())
                .setText(R.id.InstallPosition, model.getInstallPosition())
                .setText(R.id.FaultEndTime, model.getFaultEndTime())
                .setText(R.id.FaultBeginTime, model.getFaultBeginTime())
                .setText(R.id.BadLong, model.getBadLong())
                .setText(R.id.SensorStyle, model.getSensorStyle())
        ;
    }
}
